<template>
  <ul class="my-tab">
    <li :class="[item.ispick ? 'cur' : '']" v-for="(item, index) in tabctl" @click="tabChange" :data-index="index">
      <span>{{ item.name }}</span>
    </li>
  </ul>
</template>

<script>
  export default {
    props: ['tabctl'],
    methods: {
      tabChange: function (e) {
        var self = this
        self.$emit('tabChange', e)
      }
    }
  }
</script>
